package lion.dev.text.charset;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

/**
 * Always return UTF-8
 * 
 * <pre>
 * time   2013年10月14日
 * mail   hl_0074@sina.com
 * </pre>
 * 
 * @author lion
 */
public class UTF8Detector implements ICharsetDetect {

	private static final String DEFAULT_CHARSET = "UTF-8";

	@Override
	public String detect(byte[] src) throws IOException {

		return DEFAULT_CHARSET;
	}

	@Override
	public String detect(InputStream src) throws IOException {

		return DEFAULT_CHARSET;
	}

	@Override
	public String detect(File src) throws IOException {

		return DEFAULT_CHARSET;
	}

}
